var fi_myAccounts = {
	init: function(){
		this.getAccounts();
	},
	
	getAccounts: function(){
		$.ajax({
			url: 'FinanceManagement/GetAccounts',
			success: this.test
		});
	},
	test: function(res){
	}
};

var fi_tabAction = {
	init: function(event, ui){ 
		
	},
	
	tabShown: function(event, ui){
		this.loadTabPanel(ui.panel.id);
	},
	
	tabSelected: function(event, ui){
		//this.loadTabPanel(ui.panel.id);
	},
	
	loadTabPanel: function(panelId){
		switch(panelId){
			case 'my-accounts':
				fi_myAccounts.init();
			break;
			default:
				$('#' + panelId).html(panelId);
			break;
		}
	}
	
};